package com.lch.webdemo.common.msg;

/**
 * <统一消息返回>.
 *
 * @author peng cheng
 * @date 2018/10/23
 * @since
 */
public class AjaxResult {


    private int code;         //状态码
    private String message;   //提示信息
    private boolean status;   //返回成功或者失败
    private Object data;      //返回数据

    public AjaxResult(int code, String message, boolean status, Object data) {
        this.code = code;
        this.message = message;
        this.status = status;
        this.data = data;
    }

    public AjaxResult() {
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
